package la.gs;

import java.util.Collection;

import la.common.ToStringHelper;

public class GSDocParseResult {
	private Collection<GSResultRec> records;
	/**
	 * may null
	 */
	private Integer totalRecordQty;
	public GSDocParseResult(Collection<GSResultRec> records, Integer totalRecordQty) {
		super();
		this.records = records;
		this.totalRecordQty = totalRecordQty;
	}
	public Collection<GSResultRec> getRecords() {
		return records;
	}
	public Integer getTotalRecordQty() {
		return totalRecordQty;
	}
	public String toString()
	{
	    final String TAB = ",";
	    
	    String retValue = "";
	    
	    retValue = "DocParseResult("
	        + "totalRecordQty=" + this.totalRecordQty + TAB
	        + "\nrecords=" + ToStringHelper.col2Str(records, "\n") + TAB
	        + ")";
	
	    return retValue;
	}
	
}
